/* 日期设置
 -------------------------- */
export const PICKER_OPTIONS_SHORTCUTS = [
  {
    text: '今天',
    onClick(picker) {
      const end = new Date()
      const start = new Date(new Date().toDateString())
      end.setTime(start.getTime())
      picker.$emit('pick', [start, end])
    },
  },
  {
    text: '最近一周',
    onClick(picker) {
      const end = new Date(new Date().toDateString())
      const start = new Date()
      start.setTime(end.getTime() - 3600 * 1000 * 24 * 7)
      picker.$emit('pick', [start, end])
    },
  },
  {
    text: '最近一个月',
    onClick(picker) {
      const end = new Date(new Date().toDateString())
      const start = new Date()
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
      picker.$emit('pick', [start, end])
    },
  },
  {
    text: '最近三个月',
    onClick(picker) {
      const end = new Date(new Date().toDateString())
      const start = new Date()
      start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
      picker.$emit('pick', [start, end])
    },
  },
]

/* 系统错误消息
 -------------------------- */
export const MSG_SYS_ERR =
  'Server internal running error, please try again later！'
export const MSG_SYS_TIME_OUT =
  'The current network environment is poor and the access timed out. Please refresh and try again！'
export const MSG_SYS_404 = 'The requested resource does not exist！'
export const MSG_SYS_503 = 'The server is under maintenance, please wait！'
export const MSG_SYS_SUCCESS = 'Operation succeeded！'
export const MSG_SYS_FAIL = 'Operation failed！'
export const MSG_SYS_CANCELED = 'The operation was cancelled！'
export const MSG_SYS_WARNING = 'Warning, rule not followed！'

export const MSG_RULES_NUMBER = 'Must be a numeric value！'
export const MSG_RULES_REQUIRED = 'Cannot be empty！'

export const MSG_BUSINESS_DELETE = 'Delete this data, continue？'
export const MSG_BUSINESS_SUBMIT = 'Submit this data, continue？'
export const MSG_BUSINESS_SELECTED = 'Please select the data to operate！'
export const MSG_BUSINESS_START = 'Enable this data, continue？'
export const MSG_BUSINESS_STOP = 'Deactivate this data, continue？'
export const MSG_BUSINESS_IMPORT =
  'Please wait patiently. The data is being imported'
export const MSG_BUSINESS_EXPORT =
  'Please wait patiently. The data is being exported...'
export const MSG_BUSINESS_EXPORT_ALL = 'Export all data filtered by criteria'
export const MSG_BUSINESS_UPLOAD =
  'Please wait patiently. The file is uploading...'
export const MSG_BUSINESS_UPLOAD_SUCCESS = 'Upload succeeded！'
export const MSG_BUSINESS_UPLOAD_FAIL = 'Upload failed！'
export const MSG_BUSINESS_UPLOAD_IMG =
  'Uploaded pictures can only be in JPG / PNG format！'
export const MSG_BUSINESS_UPLOAD_SIZE_2M =
  'Upload picture size cannot exceed 2MB！'
export const MSG_BUSINESS_UPLOAD_SIZE_10M =
  'Upload picture size cannot exceed 10MB！'

// ------------------------LEGO PAX------------------------
export const LEGO_SOURCE_TYPE = {
  ICE: 'ice',
  SLOWPAY: 'slowpay',
  DXGY: 'dxgy',
}

export const LEGO_SOURCE_MAP = {
  [LEGO_SOURCE_TYPE['ICE']]: 'ICE',
  [LEGO_SOURCE_TYPE['SLOWPAY']]: 'SLOWPAY',
  [LEGO_SOURCE_TYPE['DXGY']]: 'DXGY',
}

export const PAX_STRATEGY_STATUS = {
  CREATINGA: '0',
  CREATINGB: '1',
  STRATEGY_CREATED: '2',
  FAILED: '3',
  DRAFT: '4',
  NOT_STARTED: '5',
  IN_PROGRESS: '6',
  END: '7',
}

export const PAX_STRATEGY_STATUS_MAP = {
  [PAX_STRATEGY_STATUS['CREATINGA']]: 'Creating',
  [PAX_STRATEGY_STATUS['CREATINGB']]: 'Creating',
  [PAX_STRATEGY_STATUS['STRATEGY_CREATED']]: 'Strategy Created',
  [PAX_STRATEGY_STATUS['FAILED']]: 'Failed',
  [PAX_STRATEGY_STATUS['DRAFT']]: 'Draft',
  [PAX_STRATEGY_STATUS['NOT_STARTED']]: 'Strategy Created',
  [PAX_STRATEGY_STATUS['IN_PROGRESS']]: 'Strategy Created',
  [PAX_STRATEGY_STATUS['END']]: 'Strategy Created',
}

export const PAX_STRATEGY_JSON = [
  {
    label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['CREATINGA']],
    value: `${PAX_STRATEGY_STATUS['CREATINGA']},${PAX_STRATEGY_STATUS['CREATINGB']}`,
  },
  {
    label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['STRATEGY_CREATED']],
    value: PAX_STRATEGY_STATUS['STRATEGY_CREATED'],
  },
  {
    label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['FAILED']],
    value: PAX_STRATEGY_STATUS['FAILED'],
  },
  {
    label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['DRAFT']],
    value: PAX_STRATEGY_STATUS['DRAFT'],
  },
  // {
  //   label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['NOT_STARTED']],
  //   value: PAX_STRATEGY_STATUS['NOT_STARTED'],
  // },
  // {
  //   label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['IN_PROGRESS']],
  //   value: PAX_STRATEGY_STATUS['IN_PROGRESS'],
  // },
  // {
  //   label: PAX_STRATEGY_STATUS_MAP[PAX_STRATEGY_STATUS['END']],
  //   value: PAX_STRATEGY_STATUS['END'],
  // },
]

export const PAX_STRATEGY_TYPE = {
  // 列表返回字段
  ICE: 'ICE-O',
  ICES2: 'ICE-G',
  ICES1S2: 'ICE-G',
  PRESLOWPAY: 'PCBA (PRESLOWPAY)',
  SLOWPAY: 'PCAA (SLOWPAY)',
  DXGY: 'DXGY',
  ROC: 'ROC',
  ioc: 'ROC',
}

export const PAX_STRATEGY_TYPE_JSON = [
  {
    label: 'ICE-O',
    value: 'ICE-O',
  },
  {
    label: 'ICE-G',
    value: 'ICE-G',
  },
  {
    label: 'PCAA(SLOWPAY)',
    value: 'PCAA',
  },
  {
    label: 'PCBA(PRESLOWPAY)',
    value: 'PCBA',
  },
  {
    label: 'DXGY',
    value: 'DXGY',
  },
  {
    label: 'ROC',
    value: 'ROC',
  },
]

export const PAX_CANVAS_INFO_STATUS = {
  DRAFT: 0, // 草稿
  TO_BE_APPROVED: 2, // 待审批
  REJECTED: 3, // 驳回待修改
  DELETED: 4, // 已删除
  END: 8, // 已结束
  NOT_START: 9, // 审批通过
  IN_PROGRESS: 10, // 已上线
  TERMINATED: 11, // 已终止
  SMS_TEMPLATE_PENDING_REVIEW: 12, // 模板待审核
  SMS_TEMPLATE_REJECTED: 13, // 模板审核驳回待修改
  EXTRA_LARGE_GROUP_REQUEST_PENDING_APPROVED: 15, // 大人群待审批
  EXTRA_LARGE_GROUP_REQUEST_REJECTED: 16, // 大人群审批驳回待修改
  EXTRA_LARGE_GROUP_REQUEST_APPROVED: 17, // 大人群审批已通过
}

export const PAX_CANVAS_INFO_MAP = {
  [PAX_CANVAS_INFO_STATUS['DRAFT']]: 'Draft',
  [PAX_CANVAS_INFO_STATUS['TO_BE_APPROVED']]: 'To Be Approved',
  [PAX_CANVAS_INFO_STATUS['REJECTED']]: 'Rejected',
  [PAX_CANVAS_INFO_STATUS['DELETED']]: 'Deleted',
  [PAX_CANVAS_INFO_STATUS['END']]: 'End',
  [PAX_CANVAS_INFO_STATUS['NOT_START']]: 'Not Start',
  [PAX_CANVAS_INFO_STATUS['IN_PROGRESS']]: 'In Progress',
  [PAX_CANVAS_INFO_STATUS['TERMINATED']]: 'Terminated',
  [PAX_CANVAS_INFO_STATUS['SMS_TEMPLATE_PENDING_REVIEW']]:
    'SMS Template Pending Review',
  [PAX_CANVAS_INFO_STATUS['SMS_TEMPLATE_REJECTED']]: 'SMS Template Rejected',
  [PAX_CANVAS_INFO_STATUS['EXTRA_LARGE_GROUP_REQUEST_PENDING_APPROVED']]:
    'Extra Large Group Request Pending Approved',
  [PAX_CANVAS_INFO_STATUS['EXTRA_LARGE_GROUP_REQUEST_REJECTED']]:
    'Extra Large Group Request Rejected',
  [PAX_CANVAS_INFO_STATUS['EXTRA_LARGE_GROUP_REQUEST_APPROVED']]:
    'Extra Large Group Request Approved',
}

export const PAX_CANVAS_LOG_CONTENT_MAP = {
  // biz_op_type
  1001: 'Create Event',
  1002: 'Edit Event - Update basic info',
  1003: 'Submit',
  1004: 'Approve - Approved',
  1005: 'Review Event - Reject',
  1006: 'Event Started',
  1007: 'Event Ended',
  1008: 'Terminate',
  1009: 'Delete',
  1010: 'Stick on top - Event stuck',
  1011: 'Stick on top - Unstick event',
  1018: 'Edit event - add step',
  1019: 'Edit event - update step',
  1020: 'Edit event - delete step',
  1021: 'Copy events',
  1024: 'Terminate-Coupon Budget runs out',
  1100: 'Save Draft',
}

export const LEGO_SOURCE_TYPE_JSON = [
  {
    label: LEGO_SOURCE_MAP[LEGO_SOURCE_TYPE['ICE']],
    value: LEGO_SOURCE_TYPE['ICE'],
  },
  {
    label: LEGO_SOURCE_MAP[LEGO_SOURCE_TYPE['SLOWPAY']],
    value: LEGO_SOURCE_TYPE['SLOWPAY'],
  },
  {
    label: LEGO_SOURCE_MAP[LEGO_SOURCE_TYPE['DXGY']],
    value: LEGO_SOURCE_TYPE['DXGY'],
  },
  // { label: 'ROC', value: 'roc' },
]

export const DRV_ALLOW_LIST = [
  'xiaoke',
  'hanleng',
  'sevenzhang',
  'yangbin',
  'zuoguipeng',
  'lijun',
  'qiuguolin',
  'pirloliuxin',
  'xiezhihui',
  'zhouxuechun',
  'shiyawei',
  'andrewwangyu',
  'jiajinliang',
  'wickzhao',
  'duansurong',
  'weisijia',
  'linqingqing_i',
  'zoeyzhoujingjing',
  'binwei',
  'xiaoyong',
  'liuhuafeng',
  'zangwenjia',
  'zhupengzhen',
  'gongzhen',
  'simeng.wang',
  'eduardobusch',
  'mazhaofeng',
  'nelsonwang',
  'avaldesrodriguez_i',
  'albertorodriguez',
  'maria.bicalho',
  'guowei',
  'qianyuan',
  'zhoujianhao',
  'kennethxie',
  'livia.pozzi',
  'lichen',
  'zhangliangzl',
  'luyifu',
  'wangzhaoqi',
  'sandyliyi',
  'wangsiming',
  'wushanhong',
  'zhoujianhao',
  'zhuminghan',
  'zhaoxiaokun',
  'yikun',
  'zhaoyazhou',
  'hua.fan',
  'belindachenyan',
  'gongzhen',
  'heqilin',
  'rayguorui',
  'chenmengraymond',
  'liuxincan',
  'jojozhouyang',
  'shimengru',
  'wuriga',
  'barrylixiaofeng',
  'zangwenjia',
  'monapansiyu',
  'heidiliyuhan',
  'heruixuan',
  'cappoqiushi',
  'kennethxie',
  'wulingli',
  'fanyujun',
  'lilingyan',
  'liguanwen',
  'michaelqiao',
  'liaobailong',
]
export const DRV_LABEL_TYPE_MAP = {
  1: 'Block List',
  2: 'Allow List',
}
export const CityDiagnosisIndex_ALLOW_LIST = [
  'xiaoke',
  'hanleng',
  'sevenzhang',
  'yangbin',
  'zuoguipeng',
  'lijun',
  'qiuguolin',
  'pirloliuxin',
  'xiezhihui',
  'zhouxuechun',
  'shiyawei',
  'andrewwangyu',
  'jiajinliang',
  'wickzhao',
  'duansurong',
  'weisijia',
  'linqingqing_i',
  'zoeyzhoujingjing',
  'binwei',
  'xiaoyong',
  'liuhuafeng',
  'zangwenjia',
  'zhupengzhen',
  'gongzhen',
  'simeng.wang',
  'eduardobusch',
  'mazhaofeng',
  'nelsonwang',
  'avaldesrodriguez_i',
  'albertorodriguez',
  'maria.bicalho',
  'guowei',
  'qianyuan',
  'zhoujianhao',
  'kennethxie',
  'livia.pozzi',
  'lichen',
  'zhangliangzl',
  'luyifu',
  'wangzhaoqi',
  'sandyliyi',
  'wangsiming',
  'wushanhong',
  'zhuminghan',
  'zhaoxiaokun',
  'zhaoyazhou',
  'hua.fan',
  'belindachenyan',
  'gongzhen',
  'heqilin',
  'rayguorui',
  'chenmengraymond',
  'liuxincan',
  'jojozhouyang',
  'shimengru',
  'wuriga',
  'barrylixiaofeng',
  'zangwenjia',
  'monapansiyu',
  'heidiliyuhan',
  'heruixuan',
  'cappoqiushi',
  'kennethxie',
  'wulingli',
  'fanyujun',
  'lilingyan',
  'liguanwen',
  'michaelqiao',
  'liaobailong',
]
export const CityDiagnosisWeek_ALLOW_LIST = [
  'xiaoke',
  'hanleng',
  'sevenzhang',
  'yangbin',
  'zuoguipeng',
  'lijun',
  'qiuguolin',
  'pirloliuxin',
  'xiezhihui',
  'zhouxuechun',
  'shiyawei',
  'andrewwangyu',
  'jiajinliang',
  'wickzhao',
  'duansurong',
  'weisijia',
  'linqingqing_i',
  'zoeyzhoujingjing',
  'binwei',
  'xiaoyong',
  'liuhuafeng',
  'zangwenjia',
  'zhupengzhen',
  'gongzhen',
  'simeng.wang',
  'eduardobusch',
  'mazhaofeng',
  'nelsonwang',
  'avaldesrodriguez_i',
  'albertorodriguez',
  'maria.bicalho',
  'guowei',
  'qianyuan',
  'zhoujianhao',
  'kennethxie',
  'livia.pozzi',
  'lichen',
  'zhangliangzl',
  'luyifu',
  'wangzhaoqi',
  'sandyliyi',
  'wangsiming',
  'wushanhong',
  'zhuminghan',
  'zhaoxiaokun',
  'zhaoyazhou',
  'hua.fan',
  'belindachenyan',
  'gongzhen',
  'heqilin',
  'rayguorui',
  'chenmengraymond',
  'liuxincan',
  'jojozhouyang',
  'shimengru',
  'wuriga',
  'barrylixiaofeng',
  'zangwenjia',
  'monapansiyu',
  'heidiliyuhan',
  'heruixuan',
  'cappoqiushi',
  'kennethxie',
  'wulingli',
  'fanyujun',
  'lilingyan',
  'liguanwen',
  'michaelqiao',
  'liaobailong',
]
// 后分析自动化配置 任务状态字典
export const ANALYZE_CONFIG_STATUS = {
  NOT_START: 0,
  IN_PROGRESS: 1,
  SUCCESS: 2,
  FAIL: 3,
}

export const ANALYZE_CONFIG_STATUS_MAP = {
  [ANALYZE_CONFIG_STATUS['NOT_START']]: 'Not Started',
  [ANALYZE_CONFIG_STATUS['IN_PROGRESS']]: 'In Progress',
  [ANALYZE_CONFIG_STATUS['SUCCESS']]: 'Success',
  [ANALYZE_CONFIG_STATUS['FAIL']]: 'Fail',
}

export const ANALYZE_CONFIG_TASK_STATUS_JSON = [
  {
    label: ANALYZE_CONFIG_STATUS_MAP[ANALYZE_CONFIG_STATUS['NOT_START']],
    value: ANALYZE_CONFIG_STATUS['NOT_START'],
  },
  {
    label: ANALYZE_CONFIG_STATUS_MAP[ANALYZE_CONFIG_STATUS['IN_PROGRESS']],
    value: ANALYZE_CONFIG_STATUS['IN_PROGRESS'],
  },
  {
    label: ANALYZE_CONFIG_STATUS_MAP[ANALYZE_CONFIG_STATUS['SUCCESS']],
    value: ANALYZE_CONFIG_STATUS['SUCCESS'],
  },
  {
    label: ANALYZE_CONFIG_STATUS_MAP[ANALYZE_CONFIG_STATUS['FAIL']],
    value: ANALYZE_CONFIG_STATUS['FAIL'],
  },
]
export const ANALYZE_NEED_RERUN_STATUS = {
  0: 'No',
  1: 'Yes',
}
// --------------在线反馈flink&spark---------------------

export const FEEDBACK_FLINK_STATUS = [
  { label: '全部', value: -3 },
  { label: '任务终止', value: -2 },
  { label: '任务失败', value: -1 },
  { label: '任务开始提交', value: 0 },
  { label: '任务运行中', value: 1 },
  { label: '任务已提交', value: 2 },
]

export const FEEDBACK_FLINK_STATUS_MAP = {
  '-3': '全部',
  '-2': '任务终止',
  '-1': '任务失败',
  0: '任务开始提交',
  1: '任务运行中',
  2: '任务已提交',
}

// 搜索框使用
export const FEEDBACK_SPARK_STATUS_LIST = [
  { label: '全部', value: -3 },
  { label: '任务执行失败', value: -1 },
  { label: 'spark接口调用成功', value: 0 },
  { label: '任务执行成功', value: 1 },
  { label: '任务已提交yarn', value: 2 },
  { label: 'spark任务开始运行(已分配队列资源)', value: 3 },
  {
    label: '任务开始提交',
    value: 4,
  },
  {
    label: 'shell失败',
    value: 5,
  },
]

export const FEEDBACK_SPARK_STATUS_MAP = {
  '-3': '全部',
  '-1': '任务执行失败',
  0: 'spark接口调用成功',
  1: '任务执行成功',
  2: '任务已提交yarn',
  3: 'spark任务开始运行(已分配队列资源)',
  4: '任务开始提交',
  5: 'shell失败',
}

// 搜索框使用
export const FEEDBACK_BUSINESS_STATUS = [
  { label: '业务失败', value: -1 },
  { label: '业务初始化', value: 0 },
  { label: '业务成功', value: 1 },
]

export const FEEDBACK_BUSINESS_STATUS_MAP = {
  '-2': '业务终止',
  '-1': '业务失败',
  0: '业务初始化',
  1: '业务成功',
  2: '业务超时未上报',
}

export const COUNTRY_LIST = [
  {
    countryid: 0,
    canonical_country_code: 'AE',
    country_code: 'ARE',
    country_desc: '',
    country_name_cn: '阿拉伯联合酋长国',
    country_name_en: 'United Arab Emirates',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'AR',
    country_code: 'ARG',
    country_desc: '',
    country_name_cn: '阿根廷',
    country_name_en: 'Argentina',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'AU',
    country_code: 'AUS',
    country_desc: '',
    country_name_cn: '澳大利亚',
    country_name_en: 'Australia',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'BD',
    country_code: 'BGD',
    country_desc: '',
    country_name_cn: '孟加拉国',
    country_name_en: 'Bangladesh',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'BY',
    country_code: 'BLR',
    country_desc: '',
    country_name_cn: '白俄罗斯',
    country_name_en: 'Belarus',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'BO',
    country_code: 'BOL',
    country_desc: '',
    country_name_cn: '玻利维亚',
    country_name_en: 'Bolivia',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'BR',
    country_code: 'BRA',
    country_desc: '',
    country_name_cn: '巴西',
    country_name_en: 'Brazil',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'CL',
    country_code: 'CHL',
    country_desc: '',
    country_name_cn: '智利',
    country_name_en: 'Chile',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'CN',
    country_code: 'CHN',
    country_desc: '',
    country_name_cn: '中国',
    country_name_en: 'China',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'CI',
    country_code: 'CIV',
    country_desc: '',
    country_name_cn: '科特迪瓦',
    country_name_en: 'Ivory Coast',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'CO',
    country_code: 'COL',
    country_desc: '',
    country_name_cn: '哥伦比亚',
    country_name_en: 'Colombia',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'CR',
    country_code: 'CRI',
    country_desc: '',
    country_name_cn: '哥斯达黎加',
    country_name_en: 'Costa Rica',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'DO',
    country_code: 'DOM',
    country_desc: '',
    country_name_cn: '多米尼加共和国',
    country_name_en: 'Dominican Republic',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'DZ',
    country_code: 'DZA',
    country_desc: '',
    country_name_cn: '阿尔及利亚',
    country_name_en: 'Algeria',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'EC',
    country_code: 'ECU',
    country_desc: '',
    country_name_cn: '厄瓜多尔',
    country_name_en: 'Ecuador',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'EG',
    country_code: 'EGY',
    country_desc: '',
    country_name_cn: '埃及',
    country_name_en: 'Egypt',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'GB',
    country_code: 'GBR',
    country_desc: '',
    country_name_cn: '英国',
    country_name_en: 'United Kingdom',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'GH',
    country_code: 'GHA',
    country_desc: '',
    country_name_cn: '加纳',
    country_name_en: 'Ghana',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'JP',
    country_code: 'JPN',
    country_desc: '',
    country_name_cn: '日本',
    country_name_en: 'Japan',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'KZ',
    country_code: 'KAZ',
    country_desc: '',
    country_name_cn: '哈萨克斯坦',
    country_name_en: 'Kazakhstan',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'KE',
    country_code: 'KEN',
    country_desc: '',
    country_name_cn: '肯尼亚',
    country_name_en: 'Kenya',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'MA',
    country_code: 'MAR',
    country_desc: '',
    country_name_cn: '摩洛哥',
    country_name_en: 'Morocco',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'MX',
    country_code: 'MEX',
    country_desc: '',
    country_name_cn: '墨西哥',
    country_name_en: 'Mexico',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'NG',
    country_code: 'NGA',
    country_desc: '',
    country_name_cn: '尼日利亚',
    country_name_en: 'Nigeria',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'NL',
    country_code: 'NLD',
    country_desc: '',
    country_name_cn: '荷兰',
    country_name_en: 'Netherlands',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'NZ',
    country_code: 'NZL',
    country_desc: '',
    country_name_cn: '新西兰',
    country_name_en: 'New Zealand',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'PK',
    country_code: 'PAK',
    country_desc: '',
    country_name_cn: '巴基斯坦',
    country_name_en: 'Pakistan',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'PA',
    country_code: 'PAN',
    country_desc: '',
    country_name_cn: '巴拿马',
    country_name_en: 'Panama',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'PE',
    country_code: 'PER',
    country_desc: '',
    country_name_cn: '秘鲁',
    country_name_en: 'Peru',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'PR',
    country_code: 'PRI',
    country_desc: '',
    country_name_cn: '波多黎各',
    country_name_en: 'Puerto Rico',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'SA',
    country_code: 'SAU',
    country_desc: '',
    country_name_cn: '沙特阿拉伯',
    country_name_en: 'Saudi Arabia',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'TW',
    country_code: 'TWN',
    country_desc: '',
    country_name_cn: '台湾',
    country_name_en: 'Taiwan',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'TZ',
    country_code: 'TZA',
    country_desc: '',
    country_name_cn: '坦桑尼亚',
    country_name_en: 'Tanzania',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'UG',
    country_code: 'UGA',
    country_desc: '',
    country_name_cn: '乌干达',
    country_name_en: 'Uganda',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'UA',
    country_code: 'UKR',
    country_desc: '',
    country_name_cn: '乌克兰',
    country_name_en: 'Ukraine',
    open: 1,
  },
  {
    countryid: 0,
    canonical_country_code: 'ZA',
    country_code: 'ZAF',
    country_desc: '',
    country_name_cn: '南非',
    country_name_en: 'South Africa',
    open: 1,
  },
]

export const TheRoute = [
  '/sys/reconciliation',

  '/sys/reconciliation/status',

  '/sys/reconciliation/start',

  '/income/reduce',

  '/income/increase',
]

export const diagnosisMapPOP = {
  GrowthRateAndResourceInput: [
    { name: 'gmv_pop', type: 'value' },
    { name: 'rides_pop', type: 'value' },
    { name: 'gp', type: 'rate' },
    { name: 'cr_pop', type: 'rate' },
    { name: 'charge_online_rate', type: 'rate' },
    { name: 'calls_pop', type: 'value' },
    { name: 'tsh', type: 'value' },
    { name: 'valid_tsh', type: 'value' },
    { name: 'dsr', type: 'value' },
    { name: 'core_density', type: 'value' },
    { name: 'b_burn_rate', type: 'rate' },
    { name: 'c_burn_rate', type: 'rate' },
    { name: 'take_rate', type: 'rate' },
    { name: 'asp', type: 'value' },
    { name: 'single_divide', type: 'value' },
  ],
  DemandGrowthAndPriceStructure: [
    { name: 'calls_pop', type: 'value' },
    { name: 'eyeballs_pop', type: 'value' },
    { name: 'ecr_pop', type: 'rate' },
    { name: 'asp', type: 'value' },
    { name: 'avg_basic_fee', type: 'value' },
    { name: 'avg_odt_fee', type: 'value' },
    { name: 'avg_surge_fee', type: 'value' },
    { name: 'pct_surge_eyeball', type: 'rate' },
    { name: 'bubble_frenquecy', type: 'value' },
    { name: 'bubble_retention', type: 'rate' },
  ],
  SubsidyEfficiency: [
    { name: 'roi_all_pax', type: 'value' },
    { name: 'roi_pax_intelligent', type: 'value' },
    { name: 'burn_over_gmv_all', type: 'rate' },
    { name: 'burn_over_gmv_pax_intelligent', type: 'rate' },
    { name: 'pax_intelligent_coverage_rate', type: 'rate' },
    { name: 'roi_slowpay', type: 'value' },
    { name: 'roi_ice', type: 'value' },
    { name: 'burn_over_gmv_slowpay', type: 'rate' },
    { name: 'burn_over_gmv_ice', type: 'rate' },
  ],
  DriverRevenueAndRetention: [
    { name: 'tsh', type: 'value' },
    { name: 'valid_tsh', type: 'value' },
    { name: 'online_drivers', type: 'value' },
    { name: 'shpd', type: 'value' },
    { name: 'charge_online_rate', type: 'rate' },
    { name: 'dar_pop', type: 'rate' },
    { name: 'driver_retention_rate_weekly_finish', type: 'rate' },
    { name: 'driver_retention_rate_28days_finish', type: 'rate' },
    { name: 'iph', type: 'value' },
    { name: 'ipt', type: 'value' },
    { name: 'tph', type: 'value' },
    { name: 'single_divide', type: 'value' },
  ],
  DriverSubsidyEfficiency: [
    { name: 'roi_total_driver', type: 'value' },
    { name: 'roi_dri_intelligent', type: 'value' },
    { name: 'intelligent_precent', type: 'rate' },
    { name: 'roi_rt', type: 'value' },
    { name: 'roi_jade', type: 'value' },
    { name: 'roi_mgl', type: 'value' },
    { name: 'burn_rate_all', type: 'rate' },
    { name: 'burn_rate_intelligent', type: 'rate' },
    { name: 'burn_rate_rt', type: 'rate' },
    { name: 'burn_rate_jade', type: 'rate' },
    { name: 'burn_rate_mgl', type: 'rate' },
  ],
  TransactionFunnel: [
    { name: 'dsr', type: 'value' },
    { name: 'cr_pop', type: 'rate' },
    { name: 'ar_pop', type: 'rate' },
    { name: 'broad_rate_pop', type: 'rate' },
    { name: 'grab_rate_pop', type: 'rate' },
    { name: 'dar_pop', type: 'rate' },
    { name: 'cba_pop', type: 'rate' },
    { name: 'pcaa_pop', type: 'rate' },
    { name: 'dcaa_pop', type: 'rate' },
    { name: 'dcaa_gaipai_pop', type: 'rate' },
    { name: 'eda', type: 'value' },
    { name: 'eta', type: 'value' },
    { name: 'ata', type: 'value' },
    { name: 'pc_eda', type: 'value' },
    { name: 'pc_eta', type: 'value' },
    { name: 'dc_eta', type: 'value' },
    { name: 'dc_eda', type: 'value' },
    { name: 'broad_eda', type: 'value' },
    { name: 'cat', type: 'value' },
  ],
  DynamicTransfer: [
    { name: 'eyeballs_dsr', type: 'value' },
    { name: 'eyeballs_adjusted_dsr', type: 'value' },
    { name: 'surge_times_eyeball', type: 'value' },
    { name: 'pct_surge_eyeball', type: 'rate' },
    { name: 'over_protect', type: 'rate' },
    { name: 'under_protect', type: 'rate' },
    { name: 'ecr_pop', type: 'rate' },
    { name: 'cr_pop', type: 'rate' },
    { name: 'er_pop', type: 'rate' },
  ],
  SerialOrders: [
    { name: 'serial_broad_rate', type: 'rate' },
    { name: 'serial_rides_rate', type: 'rate' },
    { name: 'dar_pop', type: 'rate' },
    { name: 'serial_dar', type: 'rate' },
    // { name: 'leifeng_rides_rate', type: 'rate' },
    // { name: 'leifeng_broad_rate', type: 'rate' },
  ],
  CapacityEfficiency: [
    { name: 'dsr', type: 'value' },
    { name: 'ata_rate', type: 'rate' },
    { name: 'cancel_waste_time_rate', type: 'rate' },
    { name: 'charge_online_rate', type: 'rate' },
    { name: 'waiting_rate', type: 'rate' },
    { name: 'nonstop_rate', type: 'rate' },
  ],
  dateTypeForMonitor: [
    { name: 'cr_gmv', type: 'rate' },
    {
      name: 'surge_rate',
      type: 'rate',
    },
    {
      name: 'valid_tsh_ratio',
      type: 'rate',
    },
  ],
}

export const CITY_WEEKLY_REPORT_TYPE_SELECT = [
  {
    label: 'Default (15 City)',
    value: 0,
  },
  {
    label: 'Top (Rides)',
    value: 1,
  },
  {
    label: 'Rides (Min)',
    value: 2,
  },
]

export const SLOWPAY_TYPE = [
  {
    label: 'PCBA(PRESLOWPAY)',
    value: 'PCBA',
  },
  {
    label: 'PCAA(SLOWPAY)',
    value: 'PCAA',
  },
]

//// -----------------------特征中心--------------------
export const SUBMIT_STATUS_MAP = {
  SAVE: 0,
  TRAILING: 1,
  TRAIL_FAIL: 2,
  AUDIT_WAIT: 3,
  RUNNING: 4, // 运行中
  AUDIT_REJECT: 5,
  CANCEL: 6,
  STOP: 7,
  START_WAIT: 8,
  RESTART_WAIT: 9,
  DELED: 10,
  AUDIT_PASS: 11,
  STARTING: 12, // 启动中
  STOPPING: 13, // 停止中
  RESTARTING: 14, // 重启中
}
export const SUBMIT_STATUS_MAP_OBJ = {
  [SUBMIT_STATUS_MAP['SAVE']]: '已保存',
  [SUBMIT_STATUS_MAP['TRAILING']]: '测试中',
  [SUBMIT_STATUS_MAP['TRAIL_FAIL']]: '运行失败',
  [SUBMIT_STATUS_MAP['AUDIT_WAIT']]: '待审核',
  [SUBMIT_STATUS_MAP['RUNNING']]: '运行中',
  [SUBMIT_STATUS_MAP['AUDIT_REJECT']]: '审核驳回',
  [SUBMIT_STATUS_MAP['CANCEL']]: '取消注册',
  [SUBMIT_STATUS_MAP['STOP']]: '已停止',
  [SUBMIT_STATUS_MAP['START_WAIT']]: '待启动',
  [SUBMIT_STATUS_MAP['RESTART_WAIT']]: '待重启',
  [SUBMIT_STATUS_MAP['DELED']]: '已删除',
  [SUBMIT_STATUS_MAP['AUDIT_PASS']]: '审核通过',
  [SUBMIT_STATUS_MAP['STARTING']]: '启动中',
  [SUBMIT_STATUS_MAP['STOPPING']]: '停止中',
  [SUBMIT_STATUS_MAP['RESTARTING']]: '重启中',
}
export const SUBMIT_TASK_STATUS = [
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['SAVE']],
    value: SUBMIT_STATUS_MAP['SAVE'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['TRAILING']],
    value: SUBMIT_STATUS_MAP['TRAILING'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['TRAIL_FAIL']],
    value: SUBMIT_STATUS_MAP['TRAIL_FAIL'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['AUDIT_WAIT']],
    value: SUBMIT_STATUS_MAP['AUDIT_WAIT'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['RUNNING']],
    value: SUBMIT_STATUS_MAP['RUNNING'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['STOP']],
    value: SUBMIT_STATUS_MAP['STOP'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['AUDIT_REJECT']],
    value: SUBMIT_STATUS_MAP['AUDIT_REJECT'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['CANCEL']],
    value: SUBMIT_STATUS_MAP['CANCEL'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['START_WAIT']],
    value: SUBMIT_STATUS_MAP['START_WAIT'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['RESTART_WAIT']],
    value: SUBMIT_STATUS_MAP['RESTART_WAIT'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['DELED']],
    value: SUBMIT_STATUS_MAP['DELED'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['AUDIT_PASS']],
    value: SUBMIT_STATUS_MAP['AUDIT_PASS'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['STARTING']],
    value: SUBMIT_STATUS_MAP['STARTING'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['STOPPING']],
    value: SUBMIT_STATUS_MAP['STOPPING'],
  },
  {
    label: SUBMIT_STATUS_MAP_OBJ[SUBMIT_STATUS_MAP['RESTARTING']],
    value: SUBMIT_STATUS_MAP['RESTARTING'],
  },
]

export const FEATURE_TASK_MODE_MAP = {
  HQL: 0,
  GUIDE: 1,
  PYSPARK: 2,
  FLINKSQL: 3,
}
export const FEATURE_TASK_MODE_MAP_OBJ = {
  [FEATURE_TASK_MODE_MAP['HQL']]: 'HQL',
  [FEATURE_TASK_MODE_MAP['GUIDE']]: '向导',
  [FEATURE_TASK_MODE_MAP['PYSPARK']]: 'PySpark',
  [FEATURE_TASK_MODE_MAP['FLINKSQL']]: 'FlinkSQL',
}
export const FEATURE_TASK_MODE_JSON = [
  {
    label: FEATURE_TASK_MODE_MAP_OBJ[FEATURE_TASK_MODE_MAP['HQL']],
    value: FEATURE_TASK_MODE_MAP['HQL'],
  },
  {
    label: FEATURE_TASK_MODE_MAP_OBJ[FEATURE_TASK_MODE_MAP['GUIDE']],
    value: FEATURE_TASK_MODE_MAP['GUIDE'],
  },
  {
    label: FEATURE_TASK_MODE_MAP_OBJ[FEATURE_TASK_MODE_MAP['PYSPARK']],
    value: FEATURE_TASK_MODE_MAP['PYSPARK'],
  },
  // 实时特征正式上线后 放开
  {
    label: FEATURE_TASK_MODE_MAP_OBJ[FEATURE_TASK_MODE_MAP['FLINKSQL']],
    value: FEATURE_TASK_MODE_MAP['FLINKSQL'],
  },
]

export const FEATURE_SOURCE_MAP = {
  offline: '离线特征',
  realTime: '实时特征',
}

export const PUBLIC_TASK_MAP = {
  AUDIT_WAIT: 0,
  AUDIT_PASS: 1,
  AUDIT_REJECT: 2,
  CANCEL: 3,
}

export const PUBLIC_TASK_OBJ = {
  [PUBLIC_TASK_MAP['AUDIT_WAIT']]: '待审核',
  [PUBLIC_TASK_MAP['AUDIT_PASS']]: '审核通过',
  [PUBLIC_TASK_MAP['AUDIT_REJECT']]: '审核驳回',
  [PUBLIC_TASK_MAP['CANCEL']]: '取消发布',
}

export const PUBLIC_TASK_JSON = [
  {
    label: PUBLIC_TASK_OBJ[PUBLIC_TASK_MAP['AUDIT_WAIT']],
    value: PUBLIC_TASK_MAP['AUDIT_WAIT'],
  },
  {
    label: PUBLIC_TASK_OBJ[PUBLIC_TASK_MAP['AUDIT_PASS']],
    value: PUBLIC_TASK_MAP['AUDIT_PASS'],
  },
  {
    label: PUBLIC_TASK_OBJ[PUBLIC_TASK_MAP['AUDIT_REJECT']],
    value: PUBLIC_TASK_MAP['AUDIT_REJECT'],
  },
  {
    label: PUBLIC_TASK_OBJ[PUBLIC_TASK_MAP['CANCEL']],
    value: PUBLIC_TASK_MAP['CANCEL'],
  },
]

export const publicTaskStatus = [
  {
    label: '待审核',
    value: 0,
  },
  {
    label: '审核通过',
    value: 1,
  },
  {
    label: '审核驳回',
    value: 2,
  },
  {
    label: '取消发布',
    value: 3,
  },
]

export const FEATURE_FIELD_TYPE_JSON = [
  {
    label: 'STRING',
    value: 'STRING',
  },
  {
    label: 'DOUBLE',
    value: 'DOUBLE',
  },
  {
    label: 'INT',
    value: 'INT',
  },
  {
    label: 'BIGINT',
    value: 'BIGINT',
  },
  {
    label: 'FLOAT',
    value: 'FLOAT',
  },
]

export const FEATURE_STATUS_MAP = {
  ALL: '',
  OFFLINE: 1,
  ONLINE: 2,
  BEFOREONLINE: 3,
}

export const FEATURE_STATUS_OBJ = {
  [FEATURE_STATUS_MAP['ALL']]: '全部',
  [FEATURE_STATUS_MAP['OFFLINE']]: '离线',
  [FEATURE_STATUS_MAP['ONLINE']]: '在线',
  [FEATURE_STATUS_MAP['BEFOREONLINE']]: '上线中',
}

export const FEATURE_STATUS_LIST = [
  {
    label: FEATURE_STATUS_OBJ[FEATURE_STATUS_MAP['ALL']],
    value: FEATURE_STATUS_MAP['ALL'],
  },
  {
    label: FEATURE_STATUS_OBJ[FEATURE_STATUS_MAP['OFFLINE']],
    value: FEATURE_STATUS_MAP['OFFLINE'],
  },
  {
    label: FEATURE_STATUS_OBJ[FEATURE_STATUS_MAP['ONLINE']],
    value: FEATURE_STATUS_MAP['ONLINE'],
  },
  {
    label: FEATURE_STATUS_OBJ[FEATURE_STATUS_MAP['BEFOREONLINE']],
    value: FEATURE_STATUS_MAP['BEFOREONLINE'],
  },
]

//// -----------------------基础定价-----------------------
// 策略生成页状态 generator
export const BASIC_PRICING_GENERATOR_STATUS_MAP = {
  SAVE: 0, // 已保存,编辑中
  IN_PRODUCTION: 1, // 策略生成中
  PRODUCTION_COMPLETED: 2, // 策略已生成
  IN_SIMULATION: 3, // 模拟中
  SIMULATION_COMPLETED: 4, // 模拟完成
  AUDIT: 5, // 审核中 已提交,待审核
  ONLINE_WAITING: 6, // 等待生效中
  ONLINE: 7, // 已上线 生效中
  REJECT: 8, // 驳回
  PRODUCT_FAIL: 9, // mps策略生成失败
  SIMULATION_FAIL: 10, // mps策略模拟失败
  OVERDUE: 11, // 过期
  OFFLINE: -1, // 无效
}
export const BASIC_PRICING_GENERATOR_STATUS_OBJ = {
  [BASIC_PRICING_GENERATOR_STATUS_MAP['SAVE']]: 'GDriver_Generator_Save_ZMEM',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['IN_PRODUCTION']]:
    'GDriver_Generator_Strategy_Generation_HUjA',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCTION_COMPLETED']]:
    'GDriver_Generator_Generated_eqxA',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['AUDIT']]: 'GDriver_Generator_To_be_PGWH',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE']]:
    'GDriver_Generator_Entry_into_vjWy',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['OFFLINE']]:
    'GDriver_Generator_Invalid_SZdd',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE_WAITING']]:
    'GDriver_Generator_To_be_Fvsz',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_COMPLETED']]:
    'GDriver_Generator_Simulation_completed_QHpu',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['IN_SIMULATION']]:
    'GDriver_Generator_Simulation_eTjg',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['REJECT']]:
    'GDriver_Generator_Rejected_MMRy',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCT_FAIL']]:
    'GDriver_Generator_ProductFail',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_FAIL']]:
    'GDriver_Generator_SimulationFail',
  [BASIC_PRICING_GENERATOR_STATUS_MAP['OVERDUE']]: 'Overdue',
}
export const BASIC_PRICING_GENERATOR_STATUS_JSON = [
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['SAVE']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['SAVE']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['IN_PRODUCTION']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['IN_PRODUCTION']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCTION_COMPLETED']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCTION_COMPLETED']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        [BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCT_FAIL']]
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['PRODUCT_FAIL']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['AUDIT']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['AUDIT']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE_WAITING']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE_WAITING']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['ONLINE']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['OFFLINE']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['OFFLINE']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['IN_SIMULATION']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['IN_SIMULATION']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_COMPLETED']
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_COMPLETED']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        [BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_FAIL']]
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['SIMULATION_FAIL']],
  },
  {
    label:
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        [BASIC_PRICING_GENERATOR_STATUS_MAP['REJECT']]
      ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['REJECT']],
  },
  {
    label: [
      BASIC_PRICING_GENERATOR_STATUS_OBJ[
        BASIC_PRICING_GENERATOR_STATUS_MAP['OVERDUE']
      ],
    ],
    value: [BASIC_PRICING_GENERATOR_STATUS_MAP['OVERDUE']],
  },
]
// 策略生成页状态 generator 完

// 价格系数 状态
export const BASIC_PRICING_COEFFICIENT_STATUS_MAP = {
  AUDIT: 5, // 待审核
  EFFECTIVE: 6, // 待生效
  IN_EFFECTIVE: 7, // 已生效
}
export const BASIC_PRICING_COEFFICIENT_STATUS_OBJ = {
  [BASIC_PRICING_COEFFICIENT_STATUS_MAP['AUDIT']]:
    'GDriver_Generator_To_be_UMMJ',
  [BASIC_PRICING_COEFFICIENT_STATUS_MAP['EFFECTIVE']]:
    'GDriver_Generator_To_be_Fvsz',
  [BASIC_PRICING_COEFFICIENT_STATUS_MAP['IN_EFFECTIVE']]:
    'GDriver_Generator_Entry_into_vjWy',
}
export const BASIC_PRICING_COEFFICIENT_STATUS_JSON = [
  {
    label:
      BASIC_PRICING_COEFFICIENT_STATUS_OBJ[
        BASIC_PRICING_COEFFICIENT_STATUS_MAP['AUDIT']
      ],
    value: BASIC_PRICING_COEFFICIENT_STATUS_MAP['AUDIT'],
  },
  {
    label:
      BASIC_PRICING_COEFFICIENT_STATUS_OBJ[
        BASIC_PRICING_COEFFICIENT_STATUS_MAP['EFFECTIVE']
      ],
    value: BASIC_PRICING_COEFFICIENT_STATUS_MAP['EFFECTIVE'],
  },
  {
    label:
      BASIC_PRICING_COEFFICIENT_STATUS_OBJ[
        BASIC_PRICING_COEFFICIENT_STATUS_MAP['IN_EFFECTIVE']
      ],
    value: BASIC_PRICING_COEFFICIENT_STATUS_MAP['IN_EFFECTIVE'],
  },
]
// ----- 模型管理 ------
export const MODULE_MANAGE_STATUS_MAP = {
  // 模型文件状态
  OFFLINE: 0, // 未使用
  ONLINE: 1, // 已启用
  BAN: 2, // 已禁用
}
export const MODULE_MANAGE_STATUS_OBJ = {
  [MODULE_MANAGE_STATUS_MAP['OFFLINE']]: '未发布',
  [MODULE_MANAGE_STATUS_MAP['ONLINE']]: '已发布',
  [MODULE_MANAGE_STATUS_MAP['BAN']]: '已下线',
}
export const MODULE_MANAGE_STATUS_JSON = [
  {
    label: MODULE_MANAGE_STATUS_OBJ[MODULE_MANAGE_STATUS_MAP['ONLINE']],
    value: MODULE_MANAGE_STATUS_MAP['ONLINE'],
  },
  {
    label: MODULE_MANAGE_STATUS_OBJ[MODULE_MANAGE_STATUS_MAP['OFFLINE']],
    value: MODULE_MANAGE_STATUS_MAP['OFFLINE'],
  },
  {
    label: MODULE_MANAGE_STATUS_OBJ[MODULE_MANAGE_STATUS_MAP['BAN']],
    value: MODULE_MANAGE_STATUS_MAP['BAN'],
  },
]

// ----- 模型注册 -----
export const MODULE_REGISTER_STATUS_MAP = {
  ONLINE: 1, // 启用
  OFFLINE: 2, // 停用
}
export const MODULE_REGISTER_STATUS_OBJ = {
  [MODULE_REGISTER_STATUS_MAP['ONLINE']]: '已启用',
  [MODULE_REGISTER_STATUS_MAP['OFFLINE']]: '已停用',
}
export const MODULE_REGISTER_STATUS_JSON = [
  {
    label: MODULE_REGISTER_STATUS_OBJ[MODULE_REGISTER_STATUS_MAP['ONLINE']],
    value: MODULE_REGISTER_STATUS_MAP['ONLINE'],
  },
  {
    label: MODULE_REGISTER_STATUS_OBJ[MODULE_REGISTER_STATUS_MAP['OFFLINE']],
    value: MODULE_REGISTER_STATUS_MAP['OFFLINE'],
  },
]

// Pipeline

export const PIPELINE_COMPONENTS_CATEGORY_MAP = {
  0: '样本输入',
  1: '特征选取',
  2: '数据预处理',
  3: '机器学习',
  4: '预测',
  5: '评估',
}

export const PIPELINE_COMPONENTS_ICON_MAP = {
  0: 'yangben',
  1: 'huaxiang',
  2: 'yuchuli',
  3: 'jiqixuexi',
  4: 'yuce',
  5: 'pinggu',
}

export const PIPELINE_RUNNING_JOB_STATUS = {
  INITIALIZATION: 0,
  RUNNING: 1,
  SUCCESS: 2,
  FAILED: 3,
}

export const PIPELINE_RUNNING_JOB_STATUS_MAP = {
  [PIPELINE_RUNNING_JOB_STATUS.INITIALIZATION]: '',
  [PIPELINE_RUNNING_JOB_STATUS.RUNNING]: 'running',
  [PIPELINE_RUNNING_JOB_STATUS.SUCCESS]: 'success',
  [PIPELINE_RUNNING_JOB_STATUS.FAILED]: 'failed',
}

export const PIPELINE_RUNNING_DAG_STATUS = {
  INITIALIZATION: 0,
  RUNNING: 1,
  STOP: 2,
  SUCCESS: 3,
  FAIL: 4,
}

export const PIPELINE_RUNNING_DAG_STATUS_MAP = {
  [PIPELINE_RUNNING_DAG_STATUS.INITIALIZATION]: '初始化',
  [PIPELINE_RUNNING_DAG_STATUS.RUNNING]: '运行中',
  [PIPELINE_RUNNING_DAG_STATUS.STOP]: '已停止',
  [PIPELINE_RUNNING_DAG_STATUS.SUCCESS]: '成功',
  [PIPELINE_RUNNING_DAG_STATUS.FAIL]: '失败',
}

export const PIPELINE_RUNNING_DAG_STATUS_JSON = [
  {
    label:
      PIPELINE_RUNNING_DAG_STATUS_MAP[
        PIPELINE_RUNNING_DAG_STATUS.INITIALIZATION
      ],
    value: PIPELINE_RUNNING_DAG_STATUS.INITIALIZATION,
  },
  {
    label: PIPELINE_RUNNING_DAG_STATUS_MAP[PIPELINE_RUNNING_DAG_STATUS.RUNNING],
    value: PIPELINE_RUNNING_DAG_STATUS.RUNNING,
  },
  {
    label: PIPELINE_RUNNING_DAG_STATUS_MAP[PIPELINE_RUNNING_DAG_STATUS.STOP],
    value: PIPELINE_RUNNING_DAG_STATUS.STOP,
  },
  {
    label: PIPELINE_RUNNING_DAG_STATUS_MAP[PIPELINE_RUNNING_DAG_STATUS.STOP],
    value: PIPELINE_RUNNING_DAG_STATUS.SUCCESS,
  },
  {
    label: PIPELINE_RUNNING_DAG_STATUS_MAP[PIPELINE_RUNNING_DAG_STATUS.FAIL],
    value: PIPELINE_RUNNING_DAG_STATUS.FAIL,
  },
]

export const PIPELINE_RUN_TYPE_MAP = {
  // 前端业务
  0: 'start',
  1: 'startFrom',
  2: 'stop',
  3: 'retry',
  4: 'runTo',
}

export const PIPELINE_MESSAGE_MAP = {
  0: 'DAG开始运行',
  1: 'DAG开始运行',
  2: 'DAG已停止',
  3: '节点开始运行',
  4: '节点开始运行',
}
